﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyMenu_Manage.aspx.cs" Inherits="SYS_POPEDOM_MyMenu_Manage" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript" src="../JavaScript/Common.js"></script>

    <script type="text/javascript">
        function AddMyMenu() {
            Ext.net.DirectMethods.GetAddMyMenuWinUrl({
                success: function(result) {
                    popwin(result, '我的桌面', 550, 450);
                }
            });
        }
    </script>

</head>

<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" AjaxViewStateMode="Enabled" />
    <ext:Store ID="Store1" runat="server" AutoLoad="true" OnRefreshData="Store1_RefreshData">
        <Proxy>
            <ext:PageProxy>
            </ext:PageProxy>
        </Proxy>
        <Reader>
            <ext:JsonReader  IDProperty="MENU_NO">
                <Fields>
                    <ext:RecordField Name="USER_ID">
                    </ext:RecordField>
                    <ext:RecordField Name="MENU_NO">
                    </ext:RecordField>
                    <ext:RecordField Name="MENU_NAME">
                    </ext:RecordField>
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
                  <ext:Toolbar ID="Toobar1" runat="server">
                   <Items>
                      
                               <ext:Button ID="extBtn_Add" runat="server" Icon="Add" Text="新增">
                                        <Listeners>
                                            <Click Fn="AddMyMenu" />
                                        </Listeners>
                                    </ext:Button>
                            
                                <ext:Button ID="extBtn_Delete" runat="server" Icon="Delete" Text="删除">
                                    <DirectEvents>
                                        <Click OnEvent="extBtn_Delete_Click">
                                 <%--     <ExtraParams>
                                           <ext:Parameter Name="Values" Value="Ext.encode(#{GridPanel1}.selModel.getSelected())" Mode="Raw" />
                                       </ExtraParams> --%> 
                                        </Click>
                                       
                                    </DirectEvents>
                                  </ext:Button>
                    <ext:ToolbarFill ID="ToolbarFill1" runat="server" />
                </Items>
            </ext:Toolbar>
          
          <ext:Viewport ID="Viewport1" runat ="server">
        <Content>
            <ext:BorderLayout ID = "BorderLayout2" runat ="server">
                <Center>
                    <ext:Panel ID = "Panel101" Cls="tool-form" runat = "server"  BodyBorder ="false" BodyStyle="border-width:0 0 0 0;padding:27 0 0 0;">
                        <Content>
                            <ext:RowLayout ID = "RowLayout1" runat ="server"><Rows>
                                
                                 <ext:LayoutRow RowHeight="1">
                                    <ext:Panel ID="Panel4" runat="server" Border="false"  BodyStyle="border-width:1 0 0 0;padding:0 0 0 0;" Layout="Fit" >
                                        <Content>
                                            <ext:GridPanel ID="GridPanel1" runat="server" StoreID="Store1" Border="false"  
                                                 BodyStyle="border-width:0 0 0 0px;" StripeRows="false">
                                                <ColumnModel>
                                                    <Columns>
                                                    <ext:RowNumbererColumn Header="序号" Width="35">
                                                    </ext:RowNumbererColumn>
                                                    <ext:Column Header="操作员ID" DataIndex="USER_ID" Width="150">
                                                    </ext:Column>
                                                    <ext:Column Header="MENU_NO" DataIndex="MENU_NO" Width="150" Hidden="true">
                                                    </ext:Column>
                                                    <ext:Column Header="功能名称" DataIndex="MENU_NAME" Width="150">
                                                    </ext:Column>
                                                 
                                                </Columns>
                                               </ColumnModel>
                                                <SelectionModel>
                                                    <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true">
                                                    </ext:RowSelectionModel>
                                                </SelectionModel>
                                                <BottomBar>
                                                    <ext:PagingToolbar ID ="PagingToolBar1" runat ="server" PageSize ="20" StoreID ="Store1"
                                                         Height ="25" DisplayInfo ="true" DisplayMsg ="显示{0} - {1},共{2}条" EmptyMsg="没有可显示的记录" />
                                                </BottomBar>
                                            </ext:GridPanel>
                                        </Content>
                                    </ext:Panel>
                                </ext:LayoutRow>
                                </Rows>
                            </ext:RowLayout>
                            
                        </Content>
                    </ext:Panel>
                </Center>
            </ext:BorderLayout>
        </Content>
    </ext:Viewport>
    
    </form>
</body>
</html>
